package state.practice_02;

/**
 * @author yi qiang
 * @date 2021/6/15 17:08
 */
public class RunningState implements MetroState {

    @Override
    public void running() {
        System.out.println("地铁正在运行");
    }

    @Override
    public void stopping() {
        System.out.println("error: 运行状态，无法停止");
    }

    @Override
    public void openDoor() {
        System.out.println("error: 运行状态，无法开门");
    }

    @Override
    public void closeDoor() {
        System.out.println("已关门");
    }
}
